package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.weijian.dal.enums.UserStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 用户实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@TableName("user")
@NoArgsConstructor
@AllArgsConstructor
public class User extends BaseDO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户名
     */
    private String username;
    
    /**
     * 密码
     */
    private String password;
    
    /**
     * 邮箱
     */
    private String email;
    
    /**
     * 手机号
     */
    private String phone;

    /**
     * 个人简介
     */
    private String bio;
    
    /**
     * 头像URL
     */
    private String avatar;
    
    /**
     * 用户状态
     */
    private UserStatus status;
}